package com.itheima.jdk8date;

import java.time.LocalDateTime;

/*
plus方法

 */
public class Demo05 {

    public static void main(String[] args) {
        LocalDateTime sadday = LocalDateTime.of(2011, 11, 11, 11, 11, 11);

        System.out.println(sadday.plusYears(-1));
        System.out.println(sadday.plusMonths(5));
        System.out.println(sadday.plusDays(30));
        System.out.println(sadday.plusHours(8));
        System.out.println(sadday.plusMinutes(-10));
        System.out.println(sadday.plusSeconds(20));
    }
}
